package com.service.admin.merchant.controller.req;


import com.service.dao.enums.CoinsEnum;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
public class CreditLineUpdateBalanceReq {

    @NotNull(message = "商家id不能为空")
    private Integer merchantId;

    @NotNull(message = "授信货币不能为空")
    private CoinsEnum coins;

    @NotNull(message = "信用额度不能为空")
    @Min(value = 0, message = "信用额度不能小于0")
    private BigDecimal creditNum;

}
